package com.tanovo.config;

import com.tanovo.bo.UserCore;

public class UserInfoContext {
    private static ThreadLocal<UserCore> userInfo = new ThreadLocal<UserCore>();
    public static String KEY_USERINFO_IN_HTTP_HEADER = "USER-INFO";

    public UserInfoContext() {
    }

    public static UserCore getUser(){
        return (UserCore)userInfo.get();
    }

    public static void setUser(UserCore user){
        userInfo.set(user);
    }
}
